/*
 * @Author: LiuShuang
 * @Date: 2023-03-04 08:31:52
 * @FilePath: \network\src\api\login.js
 * @Description: 登录接口
 */
import service from '../utils/request';

export function postLogin(data) {
    return service({
        url: '/api/common/getTokenToTest?username=' + data.username +'&password=' + data.password,
        method: 'post',
        headers: {
            isToken: false
        },
        data
    })
}

export function getRoleList(data) {
    return service({
        url: '/api/platform/v2/getRoleList',
        method: 'post',
        headers: {
            isToken: true
        },
        data
    })
}
